package com.gitee.wsl.compose.ext.ui

//
//private inline val TypefaceSpan.toSpanStyle: SpanStyle
//    get() = SpanStyle(
//        fontFamily = when (family) {
//            FontFamily.SansSerif.name -> FontFamily.SansSerif
//            FontFamily.Serif.name -> FontFamily.Serif
//            FontFamily.Monospace.name -> FontFamily.Monospace
//            FontFamily.Cursive.name -> FontFamily.Cursive
//            else -> FontFamily.Default
//        }
//    )
//
//private inline val StyleSpan.toSpanStyle: SpanStyle
//    get() {
//        return when (style) {
//            Typeface.NORMAL -> SpanStyle()
//            Typeface.BOLD -> SpanStyle(fontWeight = FontWeight.Bold)
//            Typeface.ITALIC -> SpanStyle(fontStyle = FontStyle.Italic)
//            Typeface.BOLD_ITALIC -> SpanStyle(
//                fontWeight = FontWeight.Bold,
//                fontStyle = FontStyle.Italic
//            )
//
//            else -> error("$style not supported")
//        }
//    }
